/**
 * 更新模板的接口调用
 */
import axios from "axios";
import * as api from "../../api/gw/index.js";
export default function (params, callback) {
    // console.log(api);
    let options = {
        method: "post",
        data: params,
        url: window.api.base_host + api.template_add,
        headers: {sessionId: getCookie("sessionId")}
    }

    axios(options).then(data => {
        console.log("enable模板的返回值", data);
        if (data.status === 200 && data.data.returnCode === 1) {
            console.log("enable模板成功");

        }
    }).catch(err => {
    });

}